package system_code.Test;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class demo1 {
    public static void main(String[] args) throws IOException {
        //创建文件
        OutputStream outputStream = new FileOutputStream("./a.txt");
        outputStream.write(97);
        outputStream.close();
        //这样a就会被覆盖
        OutputStream outputStream1 = new FileOutputStream("a.txt");
        outputStream1.write(98);
        outputStream1.close();

    }
}
